/*jslint maxerr: 50, indent: 4, browser: true */
/*global define */

(function () {
    "use strict";

    define("object.isPlainObject", ["mergeModules", "init", "object.getPrototypeOf"], function (make) {
        var buri = make.mergeModules(arguments),
            config = {
                "compatability": {}
            };

        function isPlainObject(obj) {
            return {}.constructor.prototype.toString.call(obj) === "[object Object]" && buri.object.getPrototypeOf(obj).isPrototypeOf({});
        }

        isPlainObject.init = function (options) {
            buri.init(config, options);
            buri.object.getPrototypeOf(config);
        };

        return {
            "object": {
                "isPlainObject": isPlainObject
            }
        };
    });
}());
